package lesson18;

public class Zoo {

	Mammal[] mammals = new Mammal[2];
	
	public void makeAllAnimalsNoisy(){
		for (int i = 0; i < mammals.length; i++) {
			mammals[i].makeNoise();
		}
	}
	public void makeAllToStill(){
		for (int i = 0; i < mammals.length; i++) {
			mammals[i].standStill();;
		}
	}
	public void makeAllToBorn(){
		for (int i = 0; i < mammals.length; i++) {
			mammals[i].giveBirth(i+2);
		}
	}
}
